package com.ruoyi.project.business.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import com.ruoyi.project.business.mapper.BusinessAdviceMapper;
import com.ruoyi.project.business.domain.BusinessAdvice;
import com.ruoyi.project.business.service.IBusinessAdviceService;

import javax.annotation.Resource;

/**
 * 意见反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-04
 */
@Service
public class BusinessAdviceServiceImpl implements IBusinessAdviceService 
{


    @Resource
    private BusinessAdviceMapper businessAdviceMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈ID
     * @return 意见反馈
     */
    @Override
    public BusinessAdvice selectBusinessAdviceById(Long id)
    {
        return businessAdviceMapper.selectBusinessAdviceById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param businessAdvice 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<BusinessAdvice> selectBusinessAdviceList(BusinessAdvice businessAdvice)
    {
        return businessAdviceMapper.selectBusinessAdviceList(businessAdvice);
    }

    /**
     * 新增意见反馈
     * 
     * @param businessAdvice 意见反馈
     * @return 结果
     */
    @Override
    public int insertBusinessAdvice(BusinessAdvice businessAdvice)
    {
        return businessAdviceMapper.insertBusinessAdvice(businessAdvice);
    }

    /**
     * 修改意见反馈
     * 
     * @param businessAdvice 意见反馈
     * @return 结果
     */
    @Override
    public int updateBusinessAdvice(BusinessAdvice businessAdvice)
    {
        return businessAdviceMapper.updateBusinessAdvice(businessAdvice);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param ids 需要删除的意见反馈ID
     * @return 结果
     */
    @Override
    public int deleteBusinessAdviceByIds(Long[] ids)
    {
        return businessAdviceMapper.deleteBusinessAdviceByIds(ids);
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈ID
     * @return 结果
     */
    @Override
    public int deleteBusinessAdviceById(Long id)
    {
        return businessAdviceMapper.deleteBusinessAdviceById(id);
    }
}
